package com.yhd;

import com.github.pagehelper.Page;
import com.yhd.entity.Menu;
import com.yhd.mapper.MenuMapper;
import com.yhd.model.PageInfo;
import com.yhd.model.ResultPage;
import com.yhd.service.BaseService;
import org.springframework.stereotype.Service;

@Service
public class MenuService extends BaseService<MenuMapper, Menu> {

    public ResultPage<Menu> getMenuList(PageInfo pageInfo){
        Page<Menu> reslut = pageBuild(pageInfo).doSelectPage(()->{
            mapper.select (null);
        });
        return pageTransform(reslut);
    }
}
